<extend name="Index:info"/>
<block name="body">
    <div class="panel admin-panel">
        <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加轮播</strong></div>
        <div class="body-content">
            <form method="post" class="form-x" action="" enctype="multipart/form-data">
                <div class="form-group">
                    <div class="label">
                        <label>姓名：</label>
                    </div>
                    <div class="field">
                        <input type="text" class="input w50" value="{$teachers.teacher_name}" name="teacher_name" data-validate="required:"  />
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>照片</label>
                    </div>
                    <div class="field">
                        <input type="file" id="url1" name="teacher_img" value="" class="input tips" style="width:25%; float:left;"   data-toggle="hover" data-place="right" data-image="" value="{}"/>
                        &nbsp &nbsp &nbsp &nbsp <img src="__PUBLIC__/{$teachers.teacher_img}" style="width:150px;height:150px;">
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>年龄：</label>
                    </div>
                    <div class="field">
                        <input type="number" class="input w50" value="{$teachers.teacher_age}" name="teacher_age" data-validate="required:" />
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>性别：</label>
                    </div>
                    <div class="field">
                        男：<input type="radio"  value="1" name="teacher_sex" <if condition="$teachers['teacher_sex'] eq 1" > checked</if>/>
                        女：<input type="radio"  value="0" name="teacher_sex" <if condition="$teachers['teacher_sex'] eq 0" > checked</if>/>
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>vip：</label>
                    </div>
                    <div class="field">
                        <input type="number" class="input w50" value="{$teachers.teacher_vip}" name="teacher_vip" data-validate="required:" />
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label>代表项目：</label>
                    </div>
                    <div class="field">
                        <input type="number" class="input w50" value="{$teachers.teacher_url}" name="teacher_url" data-validate="required:" />
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <input  type="hidden" style=" height:90px;" name="teacher_id" value="{$teachers.teacher_id} "/>
                        <div class="tips"></div>
                    </div>
                </div>
                <div class="form-group">
                    &nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp&nbsp  &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp<input type="submit" value="提交">

                </div>
            </form>
        </div>
    </div>

</block>